import Vue from 'vue';
import Router from 'vue-router';
import Main from '@/views/Main.vue';
import Search from '@/views/Search.vue';

Vue.use(Router);

export default new Router({
    routes: [
        {
            // 主页面
            path: '/',
            name: 'Main',
            component: Main,
        },
        {
            // 搜索页面
            path: '/search/:key_word',
            name: 'Search',
            component: Search,
        },
    ],
});
